package com.shawn.integeration.business.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shawn
 * @description: 消息日志
 * @date 2024/1/2
 */
@Data
@TableName(value = "broker_message_log")
public class BrokerMessageLog extends Model<BrokerMessageLog> {
    /**消息编号**/
    @TableId(value="message_id", type= IdType.INPUT)
    private String messageId;
    /**消息内容**/
    private String message;
    /**重试次数**/
    private Integer tryCount;
    /**消息状态**/
    private Integer status;
    /**下次重试时间**/
    private Date nextRetry;
    /**创建时间**/
    private Date createTime;
    /**更新时间**/
    private Date updateTime;
    @Override
    public Serializable pkVal() {
        return this.messageId;
    }
}
